<?php

class Zend_View_Helper_OptimizedHtmlImage extends Zend_View_Helper_HtmlElement
{
    public function optimizedHtmlImage($image, $width, $height, array $attribs = array())
    {
        $attribs['title'] = $this->view->reformatText($image->titre);
        $attribs['alt'] = $this->view->reformatText($image->label);
        return $this->view->htmlImage($this->view->resizeImage($image->path, $width, $height), $attribs);
    }

}